#include <Probability.h>

Probability::Probability(float eventProbability)
{
	probability = eventProbability;
}


float  Probability::operator & (Probability & eventProbability) const
{
	return probability * eventProbability.probability;
}

float  Probability::operator | (Probability & eventProbability) const
{
	return 1 - (1 - probability) * (1 - eventProbability.probability);
}

float  Probability::operator ! ( ) const
{
	return 1 - probability;
}



